home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / WINPROGS / UPC12BS1.ZIP / MSCMAKE < prev   
Text File  |  1993-10-04  |  44KB  |  1,378 lines

  1. #       Program:        mscmake                      15 May 1989
  2. #       Author:         Andrew H. Derbyshire
  3. #                       Kendra Electronic Wonderworks
  4. #                       P. O. Box 132
  5. #                       Arlington, MA 02174
  6. #       Function:       Build UUPC/extended from source files
  7. #       Processor:      Microsoft nmake
  8. #       External files: MASM            (8088 Assembler)
  9. #                       CL              (Microsoft C 6.0 compiler)
  10. #                       LINK or         (MS-DOS Linker)
  11. #                       LINK386         (OS/2 Linker)
  12. #                       Input source files.
  13. #
  14. #       Copyright (c) 1989-1993 by Kendra Electronic Wonderworks;
  15. #       all rights reserved except those explicitly granted by
  16. #       the UUPC/extended license.
  17. #
  18. #       nmk /nologo /s /f mscmake prodr
  19. #       nmake /nologo /s /f mscmake prodp
  20. #       nmake /nologo /s /f mscmake prodn
  21. #
  22. #       $Id: mscmake 1.37 1993/10/04 16:42:24 ahd Exp $
  23. #
  24. #       $Log: mscmake $
  25. #         Revision 1.37  1993/10/04  16:42:24  ahd
  26. #         Correct directory archives are created in
  27. #
  28. #         Revision 1.36  1993/10/04  15:40:46  ahd
  29. #         Revise makefile to generate true release names
  30. #         Include 00readme.now in all archives
  31. #
  32. #         Revision 1.35  1993/10/03  20:36:32  ahd
  33. #         Force NUL as file name linkinh
  34. #
  35. #         Revision 1.34  1993/10/02  23:11:57  dmwatt
  36. #         Add TCP/IP error messages
  37. #
  38. #         Revision 1.33  1993/10/02  19:05:48  ahd
  39. #         Change stack size on DOS modules
  40. #         Use full path name for files to aid debugging
  41. #
  42. #         Revision 1.32  1993/10/01  02:07:43  dmwatt
  43. #         Add new prtynt.obj to parallel OS/2 version
  44. #         Delete unneeded library paths
  45. #
  46. #         Revision 1.31  1993/09/29  04:47:26  ahd
  47. #         Add unique signal handler for suspend port
  48. #
  49. #         Revision 1.30  1993/09/27  00:42:15  ahd
  50. #         Add suspend of serial ports by K. Rommel
  51. #
  52. #         Revision 1.29  1993/09/20  04:34:28  ahd
  53. #         TCP/IP support from Dave Watt
  54. #         't' protocol support
  55. #         Disable debug output when installing
  56. #
  57. #         Revision 1.28  1993/09/02  12:07:45  ahd
  58. #         HPFS support
  59. #
  60. #         Revision 1.27  1993/08/26  04:59:46  ahd
  61. #         Compile without WINT variable, other NT corrections on kendra
  62. #
  63. #         Revision 1.26  1993/08/02  03:21:04  ahd
  64. #         Rename zip files
  65. #
  66. #         Revision 1.25  1993/07/31  16:19:27  ahd
  67. #         Break trumpet into unique module
  68. #         General clean up of unneeded definitions
  69. #         Always use version header
  70. #
  71. #         Revision 1.24  1993/07/20  21:43:58  ahd
  72. #         Use only one OS/2 definitions file (per Kae Uwe Rommel)
  73. #
  74. #         Revision 1.23  1993/06/15  12:17:34  ahd
  75. #         Rename commfifo.asm to comm.asm
  76. #
  77. #         Revision 1.22  1993/06/06  15:03:35  ahd
  78. #         Move to release 1.12A
  79. #
  80. #         Revision 1.21  1993/05/30  15:25:11  ahd
  81. #         Add INT14 driver support
  82. #
  83. #         Revision 1.20  1993/05/10  02:47:43  ahd
  84. #         Include getuupc.cmd in installed OS/2 files
  85. #
  86. #         Revision 1.19  1993/04/19  13:15:52  ahd
  87. #         Begin version 1.11z
  88. #
  89. #         Revision 1.18  1993/04/17  13:40:13  ahd
  90. #         Fix win/32 header build
  91. #
  92. #         Revision 1.17  1993/04/16  13:11:15  dmwatt
  93. #         Build win/nt header file less often
  94. #
  95. #         Revision 1.16  1993/04/16  12:55:11  dmwatt
  96. #         Add support for special Win/NT version id header
  97. #
  98. #         Revision 1.15  1993/04/14  02:42:33  ahd
  99. #         Fix uucp target name for Windows/NT
  100. #
  101. #         Revision 1.14  1993/04/14  00:44:19  ahd
  102. #         Drop use of FMT from ZIP file build
  103. #         Add Windows/NT zip file build
  104. #         Add credit for Dave and Windows/NT Build
  105. #
  106. #         Revision 1.13  1993/04/10  21:24:27  dmwatt
  107. #         Add Windows/NT support
  108. #
  109. #    Revision 1.11  1993/04/05  12:25:39  ahd
  110. #    Clean up .def files
  111. #
  112. #    Revision 1.10  1993/04/05  04:31:27  ahd
  113. #    HPFS support (module definition files)
  114. #
  115. #    Revision 1.9  1993/04/04  04:55:31  ahd
  116. #    Add uunamep.exe to testp: build
  117. #
  118. #    Revision 1.8  1993/03/24  01:57:13  ahd
  119. #    rn support
  120. #
  121. #    Revision 1.7  1993/03/06  22:47:10  ahd
  122. #    Generic build, including rn.exe
  123. #
  124. #    Revision 1.6  1993/01/23  19:07:01  ahd
  125. #    Revise alias
  126. #
  127. #    Revision 1.5  1992/12/04  00:58:57  ahd
  128. #    Add sysalias to rmail build
  129. #
  130. #    Revision 1.5  1992/12/04  00:58:57  ahd
  131. #    Add sysalias to rmail build
  132. #
  133. #    Revision 1.4  1992/11/29  22:12:36  ahd
  134. #    Correct TMP directory to TEMP
  135. #    Add installation of OS/2 CMD files from RCS source directory
  136. #    Change copyright message
  137. #    Add build for TESTULIB.EXE
  138. #
  139. #    Revision 1.3  1992/11/27  14:37:55  ahd
  140. #    Add scrsize() to library build
  141. #
  142. #    Revision 1.2  1992/11/22  21:04:42  ahd
  143. #    Add normalize() to build
  144.  
  145. .SUFFIXES: .c .asm .zip .obj
  146.  
  147. # *--------------------------------------------------------------------*
  148. # *     Note:   By default, this file generates code for 80286         *
  149. # *             systems and above.  If you are generating              *
  150. # *             UUPC/extended for a 8088 system, remove the /G2        *
  151. # *             option from the CCOPT= line, below                     *
  152. # *--------------------------------------------------------------------*
  153.  
  154. # *--------------------------------------------------------------------*
  155. # *   Our release number.  This is updated each time we ship it        *
  156. # *   out to some unsuspecting user, or sometimes when we do a         *
  157. # *   major fix even if we don't ship it out to the lusers.  ANY       *
  158. # *   VERSION NOT DONE ON kendra SHOULD BE TAGGED AS N.NNAm, WHERE     *
  159. # *   N.NNA IS THE NUMBER UUPC was shipped as, and 'm' any string      *
  160. # *   to indentify your special version.  Just upping the              *
  161. # *   distributed version number will confuse you AND me.              *
  162. # *--------------------------------------------------------------------*
  163.  
  164. VERS = 1.12b
  165.  
  166. # *--------------------------------------------------------------------*
  167. # *   The memory model to be built.  (Ignored by 32 bit compilers)     *
  168. # *--------------------------------------------------------------------*
  169.  
  170. !IF "$(MODEL)" == ""
  171. MODEL   = M
  172. !ENDIF
  173.  
  174. # *--------------------------------------------------------------------*
  175. # *                  Windows NT generic make include file              *
  176. # *--------------------------------------------------------------------*
  177.  
  178. !IF "$(OS)" == "Windows_NT"
  179. !include <ntwin32.mak>
  180. !ENDIF
  181.  
  182. # *--------------------------------------------------------------------*
  183. # *   Various directories.  The TEMP directory is not defined here;    *
  184. # *   rather we expect it to be defined as part of the user's          *
  185. # *   environment variables                                            *
  186. # *--------------------------------------------------------------------*
  187.  
  188. MAIL    = $(SRCSLASH)mail
  189. UTIL    = $(SRCSLASH)util
  190. UUCP    = $(SRCSLASH)uucp
  191. RNEWS   = $(SRCSLASH)rnews
  192. UULIB   = $(SRCSLASH)lib
  193. TEST    = $(SRCSLASH)test
  194. UUCICO  = $(SRCSLASH)uucico
  195.  
  196. !IF "$(OS)" == "Windows_NT"
  197. OBJ     = $(SRCSLASH)objmsnt
  198. !ELSE
  199. OBJ     = $(SRCSLASH)objms$(MODEL)
  200. !ENDIF
  201.  
  202. SBR     = $(SRCSLASH)sbr
  203. PRODP   = \uupc\os2bin
  204. PRODR   = \uupc\bin
  205. PRODN   = \uupc\ntbin
  206. SCRIPTS = $(SRCSLASH)scripts
  207.  
  208. # *--------------------------------------------------------------------*
  209. # *                        Various file names                          *
  210. # *--------------------------------------------------------------------*
  211.  
  212. ZIPPREFIXX=UPC$(VERS:.=)
  213. ZIPPREFIX=$(SRCSLASH)$(VERS)\$(ZIPPREFIXX:C1=C)
  214.  
  215. WNTZIPV1 = $(ZIPPREFIX)n1.zip
  216. WNTZIPV2 = $(ZIPPREFIX)n2.zip
  217. WNTZIPV3 = $(ZIPPREFIX)n3.zip
  218. OS2ZIPV2 = $(ZIPPREFIX)11.zip
  219. OS2ZIPV3 = $(ZIPPREFIX)12.zip
  220. OS2ZIPV4 = $(ZIPPREFIX)13.zip
  221. LIBCOMM  = $(TMP)\$(MODEL)uupcmsc.lib
  222. LIBNT    = $(TMP)\uupcnt.lib
  223. LIBOS2   = $(TMP)\$(MODEL)uupcos2.lib
  224. LIBDOS   = $(TMP)\$(MODEL)uupcdos.lib
  225. WORKFILE = $(TMP)\UUPCTEMP.TMP
  226. DEFFILE  = $(TM